package com.syk;

import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

/**
 * @Description
 * @Author 梯子君(xie)
 * @Data 2020/7/916:06
 */
public class MD5Util {
    public  static  String toMD5(String password){
        String s = DigestUtils.md5DigestAsHex(password.getBytes(StandardCharsets.UTF_8));
        System.out.println(s);
        return  s;
    }
}
